package com.example.ssm.mapper;

import com.example.ssm.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author zhangdongsheng
 * @version 1.0
 * @describe
 * @date 2021/2/20 21:59
 */
@Mapper
public interface UserMapper {

    @Select( "select username,password from mybatis_user where username=#{username} and password=#{password}" )
    User findByUsernameAndPassword(@Param( "username" ) String username , @Param( "password" ) String password);

}
